<template>
  <yt-page title="专家详情" scroll>
    <yt-cell label="姓名" :value="item.Name"></yt-cell>
    <yt-cell label="出生年月" :value="item.birth"></yt-cell>
    <yt-cell label="职称" :value="item.Title"></yt-cell>
    <yt-cell label="所在单位" :value="item.company"></yt-cell>
    <yt-cell label="联系方式">
      <yt-cell-call :tel="item.Telephone_Yd || ''"></yt-cell-call>
    </yt-cell>
    <yt-cell label="职务" :value="item.post"></yt-cell>
    <yt-cell label="专业类别" :value="item.major_list"></yt-cell>
  </yt-page>
</template>

<script>
  import { commonApi } from "@/common/api/commonApi.js"

  export default {
    data() {
      return {
        item: {}
      }
    },
    activated() {
      this.initData()
    },
    methods: {
      async initData() {
        let item = await commonApi.searchById('GO_security', this.$route.query.id)
        this.item = item
      }
    }
  }
</script>

<style scoped lang="stylus" rel="stylesheet/stylus" type="text/stylus">
  .avator
    width 100px
    height 100px
    margin-right 30px
</style>
